package org.example.messagewall.demos.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.example.messagewall.demos.model.MessageInfo;
import org.springframework.context.annotation.Primary;

import java.util.List;

@Mapper
public interface MessageMapper {


    /**
     * 插入message
     * @param messageInfo
     * @return
     */
    Integer insertMessage(@Param("message") MessageInfo messageInfo);

    /**
     * 获取message
     * @return
     */
    List<MessageInfo> selectMessage();
}
